package com.medicalproject.service.impl;

import com.medical.pojo.State;
import com.medicalproject.mapper.StateMapper;
import com.medicalproject.service.StateService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class StateServiceImpl implements StateService {

    @Resource
    private StateMapper stateMapper;

    @Override
    public int add(State state) {
        return stateMapper.add(state);
    }

    @Override
    public int handleadd(State state) {
        return stateMapper.handleadd(state);
    }
}
